package com.example.entity;

import java.time.LocalDateTime;

public class Order {
    private int id;
    private int buyid;
    private int productid;
    private double totalprice;
    private LocalDateTime orderdate;
    private String confirmation;
    private String stockup;
    private String sendorder;
    private String completion;
    private int addressId;

    public Order() {
    }


    public Order(int id, int buyid, int productid, double totalprice, LocalDateTime orderdate, String confirmation, String stockup, String sendorder, String completion, int addressId) {
        this.id = id;
        this.buyid = buyid;
        this.productid = productid;
        this.totalprice = totalprice;
        this.orderdate = orderdate;
        this.confirmation = confirmation;
        this.stockup = stockup;
        this.sendorder = sendorder;
        this.completion = completion;
        this.addressId = addressId;
    }

    public int getAddressId() {
        return addressId;
    }

    public void setAddressId(int addressId) {
        this.addressId = addressId;
    }


    public Order(int id, int buyid, int productid, double totalprice, LocalDateTime orderdate, String confirmation, String stockup, String sendorder, String completion) {
        this.id = id;
        this.buyid = buyid;
        this.productid = productid;
        this.totalprice = totalprice;
        this.orderdate = orderdate;
        this.confirmation = confirmation;
        this.stockup = stockup;
        this.sendorder = sendorder;
        this.completion = completion;
    }

    public Order(int id, int buyid, int productid, double totalprice, LocalDateTime orderdate) {
        this.id = id;
        this.buyid = buyid;
        this.productid = productid;
        this.totalprice = totalprice;
        this.orderdate = orderdate;
    }

    public String getConfirmation() {
        return confirmation;
    }

    public void setConfirmation(String confirmation) {
        this.confirmation = confirmation;
    }

    public String getStockup() {
        return stockup;
    }

    public void setStockup(String stockup) {
        this.stockup = stockup;
    }

    public String getSendorder() {
        return sendorder;
    }

    public void setSendorder(String sendorder) {
        this.sendorder = sendorder;
    }

    public String getCompletion() {
        return completion;
    }

    public void setCompletion(String completion) {
        this.completion = completion;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBuyid() {
        return buyid;
    }

    public void setBuyid(int buyid) {
        this.buyid = buyid;
    }

    public int getProductid() {
        return productid;
    }

    public void setProductid(int productid) {
        this.productid = productid;
    }


    public double getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(double totalprice) {
        this.totalprice = totalprice;
    }

    public LocalDateTime getOrderdate() {
        return orderdate;
    }

    public void setOrderdate(LocalDateTime orderdate) {
        this.orderdate = orderdate;
    }




}
